package com.kimwu.design.adapter.classadapter;


/**
 * Phone   class
 * 手机类
 */
public class ClassPhone {

    public void charging(ClassIVoltage5V iVoltage5V) {
        if (iVoltage5V.outPut5V() == 5) {
            System.out.println("电压5V,可以充电");
        } else {
            System.out.println("电压不对，不能充电");
        }
    }

}